package person.wend.springbootlearnexample2.jmx;

import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;

import org.springframework.boot.actuate.endpoint.web.annotation.WebEndpoint;
import org.springframework.stereotype.Component;
import person.wend.springbootlearnexample2.pojo.HelloWordReqDTO;

@Component
@WebEndpoint(id = "jmxWebTest")
public class JMXWebTest {

    @ReadOperation
    public HelloWordReqDTO getData() {
        return new HelloWordReqDTO("test", 5);
    }
}
